@import models.Tables.UserRow
@(user: UserRow)(implicit request: RequestHeader)
@main("账户信息")("detailInfo") {

	<div class="page-content">
		<div class="page-bar">
			<ul class="page-breadcrumb">
				<li>
					<i class="fa fa fa-user"></i>
					<a href="#">账户信息</a>
				</li>
			</ul>
		</div>


		<div class="row-fluid">
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<div class="portlet blue-madison box">
						<div class="portlet-title">
							<div class="caption">
								账户信息
							</div>
						</div>

						<div class="portlet-body form">
							<form id="form" class=" form-horizontal" accept-charset="UTF-8"
							action="" autocomplete="off" method="post" style="margin-top: 30px;">
								<div class="form-group">
									<label class="control-label col-sm-2">用户名:</label>
									<div class="col-sm-3">
										<p class="form-control-static">
											@user.name
										</p>
									</div>
								</div>

								<div class="form-group">
									<label class="control-label col-sm-2">密码:</label>
									<div class="col-sm-3">
										<p class="form-control-static">
											******
											&nbsp; <a href="@routes.UserController.changePasswordBefore()">点击修改</a>
										</p>
									</div>
								</div>

								<h3 class="form-section">报告相关</h3>

								<div class="form-group" style="margin-top: -15px">
									<div class="col-sm-5">
										<button type="button" class="btn btn-primary" id="deleteButton" onclick="DetailInfo.updateBefore">
											<i class="fa fa-pencil"></i> &nbsp;
											修改信息
										</button>
									</div>
								</div>

								<div class="form-group">
									<label class="control-label col-sm-2">单位:</label>
									<div class="col-sm-4">
										<p class="form-control-static fillById" id="unit">
											@user.unit
										</p>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div id="updateModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 800px">
				<div class="modal-content">
					<div class="modal-header bg-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="cancel()"></button>
						<h4 class="modal-title">
							<i class="fa fa-pencil"></i>
							<span id="lblAddTitle" style="font-weight: bold">修改信息</span>
						</h4>
					</div>
					<form class="form-horizontal" id="updateForm"
					data-toggle="validator" method="post" target="_blank">
						<div class="modal-body">
							<div class="row-fluid">
								<input class="form-control" name="missionId" type="hidden"/>

								<div class="form-group">
									<label class="control-label col-sm-2">单位:</label>
									<div class="col-sm-6">
										<select class="form-control fillByName" name="unit">
											<option value="XXX公司">XXX公司</option>
										</select>
									</div>
								</div>


							</div>
						</div>
						<div class="modal-footer bg-info">
							<input type="hidden" id="id" name="id"/>
							<button type="button" class="btn blue" onclick="DetailInfo.update">
								确定
							</button>
							<button type="button" class="btn green" data-dismiss="modal" onclick="cancel()">
								取消
							</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>

			<script>
			$(function () {
				DetailInfo.init
			})



	</script>

}
